package Game;
import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;


public class MIDletGame extends MIDlet{
    static CanvasGame canvas;
    public MIDletGame() {
        canvas = new CanvasGame(this);
    }

    public void startApp() {
        Display.getDisplay(this).setCurrent(canvas);

        
    }

    public void pauseApp() {
           
    }

    public void destroyApp(boolean unconditional) {
        notifyDestroyed();
        exit();
    }
    public void exit() {
        canvas = null;
        notifyDestroyed();
    }
    public void destroyApp(){
        notifyDestroyed();
        exit();
    }
}
